package com.applcn.file.utils;

import com.applcn.file.enums.FileChoiceEnum;
import org.springframework.stereotype.Component;

/**
 * 阿里文件服务实现类
 */
@Component
public class OssUtil implements AbstractFileUtil {

    private final int code = FileChoiceEnum.OSS.getCode();

    @Override
    public Integer getIdentification() {
        return code;
    }

    /**
     * 客户端获取上传凭证
     *
     * @return
     */
    public String getCertification(String fileName) {
        System.out.println("阿里云客户端上传凭证");

        return null;
    }

    @Override
    public String getFileUrl(String fileName) {
        return null;
    }
}
